package com.then.libary.util;

import java.util.HashMap;
import java.util.Map;

import com.then.libary.activity.THENApplication;
import com.then.libary.activity.UserLoginActivity;
import com.then.libary.bean.User;
import com.then.libary.thread.MyGetMessageThread;
import com.then.libary.thread.ThreadExecutorPool;

import android.app.Activity;
import android.os.Handler;

public class AppUtils {
	
	public static void getServerUserInfo(Handler handler, int i, Activity activity)
	{
		
		THENApplication thenApplication = (THENApplication) activity.getApplication();
		Map<String, String> map = new HashMap<String, String>();
		map.put("account", thenApplication.user.getAccount());
		map.put("password", thenApplication.user.getPassword());
		map.put("url", AllConfig.DOMAINNAME+"then/register.jspx");
		MyGetMessageThread myGetMessageThread = new MyGetMessageThread(handler,
				"post", map, i);
		ThreadExecutorPool.executeThread(myGetMessageThread);
	}

}
